﻿using OddUserManager.Data.IRepositories;
using OddUserManager.Model;
using OddUserManager.Service.IServices;
using System;
using System.Collections.Generic;
using System.Text;

namespace OddUserManager.Service.Services
{
    public class AnalystSelectedMatchService : IAnalystSelectedMatchService
    {
        IAnalystSelectedMatchRepository _repository;

        public AnalystSelectedMatchService(IAnalystSelectedMatchRepository repository) {
            _repository = repository;
        }

        public void Delete(int id)
        {
            _repository.Delete(id);
        }

        public List<AnalystSelectedMatch> GetAnalystSelectedMatchsByMatchIds(List<int> ids)
        {
            return _repository.GetAnalystSelectedMatchsByMatchIds(ids);
        }

        public List<AnalystSelectedMatch> GetAnalystSelectedMatchsByMatchIdsAndUserId(List<int> ids, int userId)
        {
            return _repository.GetAnalystSelectedMatchsByMatchIdsAndUserId(ids,userId);
        }

        public bool InsertOrUpdateAnalystSelectedMatch(AnalystSelectedMatch model)
        {
            return _repository.InsertOrUpdate(model);
        }
    }
}
